/**
 * 
 */
package com.slink.fxfk.framework.exception;

/**
 * 业务异常处理类
 * 
 * @author 新
 *
 */
public class FXFKException extends RuntimeException {
	private static final long serialVersionUID = -1602230455143228128L;

	private String code;

	private Object data;

	public FXFKException() {
		super();
	}

	public FXFKException(String code) {
		this.code = code;
	}

	public FXFKException(String code, String message) {
		super(message);
		this.code = code;
	}

	public FXFKException(String code, String message, Throwable cause) {
		super(message, cause);
		this.code = code;
	}

	public String getCode() {
		return code;
	}

	public FXFKException setCode(String code) {
		this.code = code;
		return this;
	}

	public Object getData() {
		return data;
	}

	public FXFKException setData(Object data) {
		this.data = data;
		return this;
	}
}
